/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 考题管理Entity
 * @author dh
 * @version 2017-01-15
 */
public class ResourceQuestion extends DataEntity<ResourceQuestion> {
	
	private static final long serialVersionUID = 1L;
	private String questionName;		// 考题名称
	private String questionAttribute;		// 考题属性
	private String label;		// 标签
	private String questionType;		// 题目类型
	private String questionDifficulty;		// 题目难度
	private String stem;		// 题干
	private String environmentId;		// 关联教学实验环境id
	private String attachment;// 附件
	private String document;// 实验文档

	public String getQuestionScore() {
		return questionScore;
	}

	public void setQuestionScore(String questionScore) {
		this.questionScore = questionScore;
	}

	private String questionScore; //题目的分值
	//补充字段：题目是否被题库选择
	private String isChoose;
	private String repertoryId;
	private String paperId;
	private String environmentName;		// 关联教学实验环境名称




	//TODO:
	private ResourceQuestionOption option;

	public ResourceQuestionOption getOption() {
		return option;
	}

	public void setOption(ResourceQuestionOption option) {
		this.option = option;
	}



	public String getPaperId() {
		return paperId;
	}

	public void setPaperId(String paperId) {
		this.paperId = paperId;
	}


	public String getRepertoryId() {
		return repertoryId;
	}

	public void setRepertoryId(String repertoryId) {
		this.repertoryId = repertoryId;
	}

	public String getDocument() {
		return document;
	}

	public void setDocument(String document) {
		this.document = document;
	}

	public String getEnvironmentName() {
		return environmentName;
	}

	public void setEnvironmentName(String environmentName) {
		this.environmentName = environmentName;
	}

	public String getIsChoose() {
		return isChoose;
	}

	public void setIsChoose(String isChoose) {
		this.isChoose = isChoose;
	}


	
	public ResourceQuestion() {
		super();
	}

	public ResourceQuestion(String id){
		super(id);
	}

	@Length(min=1, max=64, message="考题名称长度必须介于 1 和 64 之间")
	public String getQuestionName() {
		return questionName;
	}

	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}
	
	@Length(min=1, max=4, message="考题属性长度必须介于 1 和 4 之间")
	public String getQuestionAttribute() {
		return questionAttribute;
	}

	public void setQuestionAttribute(String questionAttribute) {
		this.questionAttribute = questionAttribute;
	}
	
	@Length(min=0, max=64, message="标签长度必须介于 0 和 64 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	@Length(min=1, max=4, message="题目类型长度必须介于 1 和 4 之间")
	public String getQuestionType() {
		return questionType;
	}

	public void setQuestionType(String questionType) {
		this.questionType = questionType;
	}
	
	@Length(min=1, max=4, message="题目难度长度必须介于 1 和 4 之间")
	public String getQuestionDifficulty() {
		return questionDifficulty;
	}

	public void setQuestionDifficulty(String questionDifficulty) {
		this.questionDifficulty = questionDifficulty;
	}
	
	@Length(min=0, max=255, message="题干长度必须介于 0 和 255 之间")
	public String getStem() {
		return stem;
	}

	public void setStem(String stem) {
		this.stem = stem;
	}
	
	@Length(min=0, max=64, message="关联教学实验环境id长度必须介于 0 和 64 之间")
	public String getEnvironmentId() {
		return environmentId;
	}

	public void setEnvironmentId(String environmentId) {
		this.environmentId = environmentId;
	}
	
	@Length(min=0, max=128, message="附件长度必须介于 0 和 128 之间")
	public String getAttachment() {
		return attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}
	
}